package com.my.constant;

public enum ErrorCode {
	/**
	 * 操作成功
	 */
	SUCCESS(0, "操作成功"),
	/**
	 * 流程没有部署
	 */
	DEPLOY_ID_NOT_EXIST(-1, "流程没有部署"),
	/**
	 * 没有登陆
	 */
	NOT_LOGIN(-3,"没有登陆"),
	/**
	 * 操作失败
	 */
	FAUILURE(-2, "操作失败"),
	NOT_DATA_FOUND(-4,"数据不存在"),
	;
	

	private int value;
	private String desc;

	ErrorCode(int value, String desc) {
		this.value = value;
		this.desc = desc;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

}
